import {BaseUrl,} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";

class TaskModel {
    constructor() {
        this.url = BaseUrl
    }

    all() {
        let end = this.url + 'gettaskform'
        let req = new ApiFetch(end)
        return req.fetch()
    }

    change(params) {
        let end = this.url + 'changetaskfrom'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }
}

export default TaskModel
